package com.lczc.soa.service;

import com.lczc.soa.domain.Policy;
import com.lczc.soa.domain.SearchApplyResponse;
import com.lczc.soa.domain.SearchPolicyResponse;

import java.util.List;

public interface PolicyService {

    int savePolicy(Policy policy);

    SearchPolicyResponse findAllPolicy(Integer pageNum, Integer pageSize);

    SearchPolicyResponse findPolicyLikeName(String keywords, Integer pageNum, Integer pageSize);

    Policy findPolicyByPrimaryKey(String id);

    int deletePolicy(String id);

    List<Policy> listPolicy();
}
